package com.hnas.trade.domain;

import java.util.HashMap;
import java.util.Map;

public class OrderScheduleErrMsg {
	
	public static final String PAY_SUCCESS = "01";//支付成功
	public static final String PAY_FAIL = "02";//支付失败
	public static final String SWIFTNUMBER_EMPTY = "03";//SwiftNumber为空
	public static final String CORE_TRADE_SNO_EMPTY = "04";//核心交易流水号为空
	public static final String INVOCATION_FAIL = "05";//调用接口失败
	
	public static Map<String, String> map = new HashMap<String, String>();
	static{
		map.put(PAY_SUCCESS, "支付成功");
		map.put(PAY_FAIL, "支付失败");
		map.put(SWIFTNUMBER_EMPTY, "SwiftNumber为空");
		map.put(CORE_TRADE_SNO_EMPTY, "核心交易流水号为空");
		map.put(INVOCATION_FAIL, "调用接口失败");
	}

	public static String getErrMsg(String key){
		return map.get(key);
	}

	public static Map<String, String> getErrMsgMap(){
		return map;
	}
}
